import java.util.Scanner;

public class demo02 {
    //解立方根
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        for (int i = 0; i < n; i++) {
            double num=sc.nextDouble();
            for (double j = 0; j <= i; j++) {
                if(j*j*j==num){
                    System.out.printf("%.3f\n",j);
                }
            }
        }
    }
}
